package lu.med.praxiswahl.wahlumed.client.kalender;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * 
 * @author Lars Holger Roth
 */
public class NewPatientTableRowPanel extends JPanel
{
    /**
     * 
     */
    private static final long serialVersionUID = 4613067293761437051L;
    public static Color green = new Color(0, 200, 0);
    public static Color black = new Color(0, 0, 0);

    public NewPatientTableRowPanel(JLabel label)
    {
	super(new BorderLayout());

	this.add(label, BorderLayout.WEST);
    }

    @Override
    public void paint(Graphics g)
    {
	super.paint(g);
	// Zeichnet einen grünen Punkt hinter den Eintrag
	g.setColor(green);
	g.fillOval(0, 3, 10, 10);
	g.setColor(black);
	g.drawOval(0, 3, 10, 10);
    }
}
